<template>
	<view>
		<view class="tab" @click="outUser">
			<text>{{$t("NavigationBar.TableNumber")}}：{{deName}}</text>
			<image src="../../static/nav/exit/exit.png" mode=""></image>
		</view>
	</view>
</template>

<script>
	export default {
		name: "TableNumber",
		data() {
			return {
				
			};
		},
		computed: {
			deName() {
				return this.getDeName()
			}
		},
		methods: {
			outUser() {
				this.showAlert('是否退出登录？').then(() => {
					uni.clearStorage()
					uni.reLaunch({
						url: '/pages/login/index'
					})
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.tab {
		padding: 8px 10px;
		display: flex;
		border-radius: 10px;
		align-items: center;
		background-color: $qy-bg-nav-option-color;
		margin-left: 16px;

		text {
			color: $uni-text-color;
			margin-left: 8px;
			font-size: 14px;
		}

		image {
			width: 16px;
			height: 16px;
			margin-left: 7px;
		}
	}
</style>